package com.biyabi.pojo;

import com.biyabi.entity.Address;
import com.biyabi.entity.Order;
import com.biyabi.entity.User;

import java.util.List;

public class OrderPojo {
    private Order order;
    private Address address = new Address();//订单地址
    private List<OrderItemPojo> orderItemPojos ;//订单项
    private User user;

    public OrderPojo(Order order, Address address, List<OrderItemPojo> orderItemPojos, User user) {
        this.order = order;
        this.address = address;
        this.orderItemPojos = orderItemPojos;
        this.user = user;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Order getOrder() {

        return order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public List<OrderItemPojo> getOrderItemPojos() {
        return orderItemPojos;
    }

    public void setOrderItemPojos(List<OrderItemPojo> orderItemPojos) {
        this.orderItemPojos = orderItemPojos;
    }

    public OrderPojo() {

    }
}
